package com.flower8.service;

import com.flower8.model.PointMall;
import com.flower8.utils.PageData;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: tanglin
 * @Date: 2019/12/31 17:47
 * @Version: 1.0
 */
public interface PointService {

    /**
     * 查询积分商城商品列表
     * @param pd
     * @return
     * @throws Exception
     */
    List<Map> getPointMallList(PageData pd) throws Exception ;

    /**
     * 查询积分商城商品列表
     * @param pd
     * @return
     * @throws Exception
     */
    int getPointMallCount(PageData pd) throws Exception ;

    /**
     * 根据积分商品ID查询
     * @param id
     * @return
     * @throws Exception
     */
    Map getPointMallById(long id) throws Exception;

    /**
     * 更新积分商城商品
     * @param pointMall
     * @throws Exception
     */
    void updatePointMall(PointMall pointMall)throws Exception;

    /**
     * 新增积分商城商品
     * @param pointMall
     * @throws Exception
     */
    void addPointMall(PointMall pointMall)throws Exception;

    /**
     * 删除积分商城商品
     * @param id
     * @throws Exception
     */
    void deletePointMall(long id)throws Exception;

    /**
     * 积分商城兑换记录
     * @param param
     * @throws Exception
     */
    List<Map> getMallRecordList(Map param)throws Exception;

    /**
     * 积分商城兑换记录数量
     * @param param
     * @return
     * @throws Exception
     */
    int getMallRecordListCount (Map param)throws Exception;

    /**
     * 发放兑换商品
     * @param param
     * @throws Exception
     */
    void sendMallRecord (Map param)throws Exception;
}
